'use strict';

const Service = require('egg').Service;

class UserService extends Service {
  async login(id) {
    const { ctx, app } = this;
    return await ctx.model.User.findAll({ where:{ id:id } })
  }

  async Info(id){
    const { ctx } = this;
    return await ctx.model.User.findOne({ where:{ id:id } })
  }

}

module.exports = UserService;
